<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h1>用户登录</h1>
<!--
spring-security默认对应登录的请求就是login
表单的提交方式必须是post
用户名的name默认是username,密码的name默认为password
-->
<form  action='/login2' method='POST'>
    <table>
        <tr><td>User:</td><td><input type='text' name='uname'  ></td></tr>
        <tr><td>Password:</td><td><input type='password' name='pwd'/></td></tr>
        <tr><td colspan='2'><input name="submit" type="submit" value="Login"/></td></tr>
        <!--<input name="_csrf" type="hidden" value="a828c0d3-41e5-46e7-9669-3804b23caf9b" />-->
    </table>
</form></body></html>
</body>
</html>